<?php
/*
<Model Information> 
Author: Qamar Sheeraz
Date:   05-07-2011
Last Updated by: Naseer Ahmad
Last Updated on: 14-07-2011
*/

class homeModel extends appModel
{
	var $name = 'homeModel';

	function verifyLogin($usernickname, $userpassword)
	{
		$usernickname = strtolower($usernickname);		
		$userpassword = md5($userpassword);
		$res = $this -> _getRowData('usersInfo',
									"userID, userStatus, userNickName",
									"userNickName = '$usernickname'
									 AND userPassword = '$userpassword'");
									 //die();
	 	return $res;									 
	}
}

?>